<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" href="css/bootstrap.min.css"/>
	<title>凯盛项目管理系统</title>
	<style type="text/css">
		body{
			background-image:url(img/bg10.jpg);
		}
		.wall {
			border: 1px solid #DDDDDD;
			
		}
	</style>
</head>
<body class="body">
	<%@ include file="include/top.jsp" %>
	
	<div class="container" style="padding-top:50px;">
		<div class="row">
			<jsp:include page="include/side.jsp">
				<jsp:param value="idea" name="tag"/>
			</jsp:include>
			
			<div class="span9">
				<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 10px 10px 0 0;margin-top:15px">
					<li class="active">
						<a href="idea.html"><i class="icon-fire"></i>想法</a>
					</li>
					<li class="pull-right"><i class="icon-plus"></i><a href="idea.jspx?m=add" class="link-black">发表想法</a></li>
			</ul>
			
		<div class="wall"  style="height:450px;margin-bottom:20px" >
			
		
			<c:forEach items="${page.result}" var="p">
				
				<blockquote>
				  <h4><a href="ideacomment.jspx?id=${p.id}">${p.title}</a></h4>
				  <p style="font-size:14px;line-height:1.5">${p.content}</p>
				  
				  <small>${p.userName} 发布于 ${p.createTime}</small>
				  <a href="idea.jspx?m=update&id=${p.id}" title="编辑"><i class="icon-pencil"></i></a>
				  <a href="idea.jspx?m=del&id=${p.id}" title="删除"><i class="icon-trash"></i></a>
				</blockquote>
				
			</c:forEach>
			
		</div>	
			<div class="pagination pull-right">
				  <ul>
				  <li>
					  <a href="idea.jspx?p=1">首页</a>
					</li>
					<li><a href="idea.jspx?p=${page.pageNum-1} ">上一页</a></li>
					
					<li><a href="idea.jspx?p=${page.pageNum+1} ">下一页</a></li>
					
					<li><a href="idea.jspx?p=${page.totalPages} ">尾页</a></li>
				  </ul>
			</div>
			
		</div>
		</div>			
			
		</div>
		

</body>
</html>		